Skip to content

chore(logging): improved logs when using errors-only#8889

Closed
anthonyshew wants to merge 3 commits intomainfrom
shew-11809
Closed

chore(logging): improved logs when using errors-only#8889
anthonyshew wants to merge 3 commits intomainfrom
shew-11809

Conversation

@anthonyshew
Copy link
Copy Markdown
Contributor

@anthonyshew anthonyshew commented Jul 31, 2024

Question: Will this create log groups in CI that previously didn't exist? Leaving as draft until I learn more on this (and if the team thinks this is a good change).

Description

Previously, errors-only wouldn't log anything on a successful task. Your tasks would be running, but turbo appeared to be hanging. The task would only print the "leader log" that its running when it errors so you'd get no visual feedback that it even started.

With a few more thoughtful logs, we can make it more clear that your tasks are currently running (though there aren't logs printing).

Considerations

This is a bit of a spiritual departure from truly being logging with strictly only errors but I'm of the opinion that the trade is worth it after reading #4042. I've also played with this in a few larger repos to find out how it feels and I'm finding it to be an improvement (though I'm open to feedback otherwise!)

Testing Instructions

👀

Screenshots

Note that these screenshots don't show the timing of the logs well. You'd previously only get the log that the task was happening after it already errored but now it shows when the task starts.

  • Mix of cache misses and hits
    CleanShot 2024-07-30 at 23 11 29

  • All successful hits
    CleanShot 2024-07-30 at 23 14 42

  • With cache disabled and failures
    CleanShot 2024-07-30 at 23 12 13

  • With cache disabled and successes
    CleanShot 2024-07-30 at 23 13 57

@anthonyshew anthonyshew requested a review from a team as a code owner July 31, 2024 05:09
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jul 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-svelte-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2025 8:32pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rust-docs ⬜️ Ignored (Inspect) Visit Preview Jun 19, 2025 8:32pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 31, 2024

🟢 Turbopack Benchmark CI successful 🟢

Thanks

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jul 31, 2024

🟢 CI successful 🟢

Thanks

@anthonyshew anthonyshew closed this Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant